#include <iostream>
#include <array>
#include <algorithm>
using namespace std;

int main() {
    array<int,10> arr;
    arr.fill(0);
    for(auto& n : arr) {
        cout << n << ",";
    }
    cout << endl;
    // 修改
    for(int i = 9; i >= 0; --i) {
        arr[i] = i;
    }
    sort(arr.begin(), arr.end());
    for(auto& n : arr) {
        cout << n << ",";
    }
    cout << endl;
    
    return 0;
}